package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class JDBCTools {
	
	public static Connection getConnection(String username ,String password ,String driver ,String url) throws SQLException, ClassNotFoundException{
		Class.forName(driver);
		Connection	conn = DriverManager.getConnection(url, username, password);
		
		return conn;
	}
	
}
